<template>
    <div class="homeitem">
         <div class="updataTime">
            <span>{{navList.tab_online_name}}</span>
            <span>{{navList.tab_preshow_name}}</span>
        </div>
    </div>
</template>
<script>
export default {
    data () {
        return {
            navList: []
        }
    },
    mounted () {
        this.axios({
            url: './json/test2.json',
            method: 'get'
        }).then(res => {
            console.log(res.data);
            console.log(res.data.item_list[0].image_url_set.main['800'])
            this.navList = res.data.nav
        }).catch(err => console.log(err))
    }
}
</script>
<style lang="scss" scoped>
.updataTime{
    width: 100%;
    height: 44px;
    display: flex;
    text-align: center;
    line-height: 44px;
    background-color: #fff;
    span{
      flex: 1;
      color: #666;
      font-size: 14px;
    }
  }
</style>
